package com.mediacloud.app.newsmodule.activity.military_encyclopedia

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.mediacloud.app.assembly.util.loadX
import com.mediacloud.app.newsmodule.R

class MilitaryEncyclopediaImageAdapter : BaseQuickAdapter<ImageSimpleList,BaseViewHolder>(R.layout.item_bk_images) {
    override fun convert(helper: BaseViewHolder, item:ImageSimpleList) {
        val tempImg = helper.getView<ImageView>(R.id.ivImage)
        tempImg.loadX(item.url,3,1,false,null)
    }

}